package gvjclient.ui;
/*
Copyright 2010 Arpit Sud
This file is part of gv-jclient. (http://code.google.com/p/gv-jclient/)
gv-jclient is an Unofficial Java client for Google Voice.

gv-jclient is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

gv-jclient is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with gv-jclient.  If not, see <http://www.gnu.org/licenses/>.
*/

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;


public class LoginPanel extends JPanel {

	JTextField loginUsernameText;
	JPasswordField loginPasswordText;
	JButton loginButton;

	/*public LoginPanel() {
		//super(new BoxLayout(this, BoxLayout.Y_AXIS));
		this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
		JLabel loginPageTitleLabel;
		JLabel loginUsernameLabel;
		JLabel loginPasswordLabel;
		JPanel loginUsernamePanel;
		JPanel loginPasswordPanel;
		JPanel loginInputPanel;
		GVJclientUI uiInstance;
		
		loginUsernamePanel = new JPanel();
		loginPasswordPanel = new JPanel();
		loginInputPanel = new JPanel();
		loginUsernameText = new JTextField(32);
		loginPasswordText = new JPasswordField(32);
		loginButton = new JButton("Login");
		
		this.setLayout(new FlowLayout());
		loginUsernamePanel.setLayout(new BoxLayout(loginUsernamePanel, BoxLayout.X_AXIS));
		loginPasswordPanel.setLayout(new BoxLayout(loginPasswordPanel, BoxLayout.X_AXIS));
		loginInputPanel.setLayout(new GridLayout(2,2));
		loginInputPanel.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
		
		uiInstance = GVJclientUI.get_instance();
		loginButton.addActionListener(uiInstance);
		loginButton.setActionCommand("LOGIN");

		
		loginPageTitleLabel = new JLabel("Enter your Google account credentials");
		loginUsernameLabel = new JLabel("Username");
        loginPasswordLabel = new JLabel("Password");
        
        loginInputPanel.add(loginUsernameLabel);
        loginInputPanel.add(loginUsernameText);
        
        loginInputPanel.add(loginPasswordLabel);
        loginInputPanel.add(loginPasswordText);
     	
        this.add(loginPageTitleLabel);
		this.add(loginInputPanel);
		this.add(loginButton);
		
		

		loginInputPanel.setPreferredSize(new Dimension(150,40));
		this.setPreferredSize(new Dimension(280,75));
	} */

}
